package com.kinoshita.admin.api.client;

import com.kinoshita.admin.api.domain.AdminDO;
import com.kinoshita.common.result.ResultDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "admin")
public interface AdminClient {

    @PostMapping("/admin-api/getAdminByName")
    public ResultDO<AdminDO> getAdminByName(@RequestBody String username);
}
